package com.proxy;

import com.proxy.iface.Phone;
import com.proxy.iface.impl.RealPhone;
import com.proxy.iface.proxy.ProxyPhone;

public class Test {
    public static void main(String[] args) {
        Phone phone = new RealPhone("123456");
        phone.call();

        System.out.print("\n");

        Phone proxyPhone = new ProxyPhone("123456");
        proxyPhone.call();
    }
}
